<template>
  <div class="stocking-comparison-container">
    <h2 class="page-title">入库出库排名对比</h2>
    
    <div class="comparison-layout">
      <!-- 左侧：入库排名 -->
      <div class="left-panel">
        <StorageStock />
      </div>
      
      <!-- 右侧：出库排名 -->
      <div class="right-panel">
        <OutStocking />
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import StorageStock from './StorageStock.vue'
import OutStocking from './OutStocking.vue'
</script>

<style scoped>
.stocking-comparison-container {
  padding: 20px;
  background: #f5f5f5;
  min-height: 100vh;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}

.comparison-layout {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.left-panel,
.right-panel {
  flex: 1;
  min-width: 0; /* 防止flex子项溢出 */
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .comparison-layout {
    flex-direction: column;
    gap: 30px;
  }
  
  .left-panel,
  .right-panel {
    flex: none;
  }
}

@media (max-width: 768px) {
  .stocking-comparison-container {
    padding: 10px;
  }
  
  .page-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .comparison-layout {
    gap: 20px;
  }
}
</style> 